package com.weixin.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.apache.commons.dbutils.handlers.BeanListHandler;

import com.weixin.dao.IPurchase_peopleDao;
import com.weixin.entity.Purchase_people;
import com.weixin.util.C3p0Util;

public class Purchase_peopleDaoImpl implements IPurchase_peopleDao {
	C3p0Util c3p0=new C3p0Util();
	@Override
	public List<Purchase_people> selectAll() throws SQLException {
		String sql="select * from purchase_people_tb";
		return c3p0.getqr().query(sql,new BeanListHandler<Purchase_people>(Purchase_people.class));
	}

}
